package com.xtc.netty.tomcat.servlet;


import com.xtc.netty.tomcat.http.MyRequest;
import com.xtc.netty.tomcat.http.MyResponse;
import com.xtc.netty.tomcat.http.MyServlet;

/**
 * @author Administrator
 */
public class SecondServlet implements MyServlet {

    @Override
    public void doPost(MyRequest request, MyResponse response) throws Exception {
        response.write("This is second Servlet!");
    }

    @Override
    public void doGet(MyRequest request, MyResponse response) throws Exception {
        this.doPost(request, response);
    }
}
